/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.app.dao.recommend;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.app.page.recommend.CereRecommendTypeVO;
import com.shop.cereshop.app.page.recommend.RecommendPageVO;
import com.shop.cereshop.app.page.recommend.RecommendType;
import com.shop.cereshop.app.page.recommend.RecommendTypeVO;
import com.shop.cereshop.app.param.recommend.RecommendPageDTO;
import com.shop.cereshop.app.param.recommend.RecommendTypeDTO;
import com.shop.cereshop.commons.domain.recommend.CereRecommendType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereRecommendTypeDAO extends BaseMapper<CereRecommendType> {
    List<CereRecommendTypeVO> getAll();

    List<RecommendTypeVO> getRecommendTypeVOs(RecommendPageDTO param);

    List<RecommendType> getRecommendTypes();

    List<Long> getRecommendTypeIds();

    RecommendTypeVO getRecommendType(@Param("typeId") Long typeId);

    List<RecommendTypeVO> getRecommendTypeVOS(RecommendTypeDTO param);

    List<RecommendPageVO> getRecommendTypeVO(@Param("list") List<Long> recommendTypeIds, @Param("buyerUserId") Long buyerUserId);

    List<String> getTypeNameList(@Param("list") List<Long> list);

    List<CereRecommendType> getRecommendTypeList(@Param("list") List<Long> list);
}
